{% extends '__base.tpl' %}
{% block head %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/answer.css" />
{% endblock %}
{% block body %}
<div id ='box'>
<div id='content'>
    <div class="contHead">
        <h1>计算机编程语言 <small><button class="btnStyle">互助问答</button></small></h1>
    </div>           
    <div class="contBody">
        <div class="contTitle" >
            <img class="contTitleImg" src="public/images/1_54.jpg">
            <div class="contAuthor">
                <p>赫德拉姆<i class="iconL1"></i> <span>等级L1</span></p>
                <p><small>2018年07月16日 13:31:17</small></p>
            </div>
            <button class="btnStyleS"> + 关注</button>
            <div class="reply"><b>回复</b>&nbsp;&nbsp;举报</div>
        </div>
        <div class="contText">                       
                <img src="public/images/ctext.jpg">
        </div>                
    </div>
    
    <div class="contRight">

    </div>
</div>

<div class="lmessage">
    <div class="commentTag">
            <ul>
            <li>浏览 <em>12</em></li>
            <li>点赞 <em>152</em></li>
            <li>分享 <em>755</em></li>
            <li class="comTab" ></li>
            <li><img src='public/images/zan.jpg' class="starts">点赞</li>
            <li><img src="public/images/collect.jpg" class="starts">收藏</li>
        </ul>
    </div>
    <div class="lmessageB">
        <span class="lmText">评论 ( 38 )</span>
    </div>
    <div class="lmessageC">
        <div id = 'editorDiv'>
        <script id="editor" type="text/plain" style="width:100%;height:224px;"></script> 
        </div>     
        <button class="btnBlueM">发送</button> 
        <em>取消</em>             
    </div>
    <div class="lmessageList">
        <div class="contTitle" style="float: left" >
            <img class="contTitleImg" src="public/images/1_54.jpg">
            <div class="contAuthor">
                <p>赫德拉姆<i class="iconL1"></i> <span>等级L1</span></p>
                <p><small>2018年07月16日 13:31:17</small></p>
            </div>
            <button class="btnStyleS"> + 关注</button>                    
        </div>
        
        <div class="reText">
            <p>讲的很仔细，也很认真负责，必须给个好评</p>
            <p><div class="reply"><b>回复</b>&nbsp;&nbsp;举报</div></p>
            <div class="lmessageC">
                <textarea placeholder="写下你的评论..."></textarea>  
                <button class="btnBlueM">发送</button>  
                <em>取消</em>            
            </div>
        </div>

        
    </div>
</div>
<!-- end content-->
</div><!-- end box-->
{% endblock %}

{% block script %}
{{ super() }}
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
   
    
    $(function(){
        var ue = UE.getEditor('editor');
        
        function setContent(isAppendTo) {
        
            ue.setContent(isAppendTo)
            
        } 

        ue.ready(function() {
            setContent('ss')
        })
     
    })
</script>
{% endblock %}